using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

using AJAXCore.Models;

namespace AJAXCore.Data {
  public class MyDBContext : DbContext {
    public MyDBContext(DbContextOptions<MyDBContext> options)
        : base(options) {
    }

    public DbSet<Country> Country { get; set; }
    public DbSet<State> State { get; set; }
    public DbSet<Member> Member { get; set; }

    /*
  protected override void OnModelCreating(ModelBuilder modelBuilder) {
    modelBuilder.Entity<Person>().HasData(
    new Person {
      PersonId = 1,
      FirstName = "Tara",
      LastName = "Brewer",
      City = "Ocala",
      Address = "317 Long Street"
    },
    new Person {
      PersonId = 2,
      FirstName = "Andrew",
      LastName = "Tippett",
      City = "Anaheim",
      Address = "3163 Nickel Road"
    });
  }
    */
  }
}
